package pojo;

import java.util.List;

public class tree {
    private int id;    //树的节点Id，区别于数据库中保存的数据Id。若要存储数据库数据的Id，添加新的Id属性；若想为节点设置路径，类中添加Path属性
    private String text;   //节点名称
    private List<tree> nodes;    //子节点，可以用递归的方法读取，
    private StateBean state ;//是否选中

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public StateBean getState() {
        return state;
    }

    public void setState(StateBean state) {
        this.state = state;
    }
    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public List<tree> getNodes() {
        return nodes;
    }

    public void setNodes(List<tree> nodes) {
        this.nodes = nodes;
    }
}
